package com.bluesmart.mia;

import com.umeng.message.PushAgent;
import com.util.PreferencesUtils;

import android.os.Bundle;
import android.widget.TextView;
import android.content.Intent;

public class MainActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

        PushAgent mPushAgent = PushAgent.getInstance(this);
        mPushAgent.enable();
		
		String username = PreferencesUtils.getString(this, "is_login");
		if(username != null && username.length() > 0 && username.equals("1"))
		{
			startActivity(new Intent(this,MainTabActivity.class));
		}
		else
		{
			startActivity(new Intent(this,GuideActivity.class));
		}
		
		finish();
	}
}
